#include<stdio.h>
int main()
{
    int n,a,b,c;
    scanf("%d",&n);
    a=n%10;
    b=(n/10)%10;
    c=n/100;
    printf("%d ",a);
    printf("%d ",b);
    printf("%d ",c);
    return 0;
}
